package com.itheima.utils;

public class DefaultSessionFactory implements SessionFactory {

    private Configuration configuration;

    public DefaultSessionFactory(Configuration configuration) {

        this.configuration = configuration;
    }

    public Session openSession() {

        return new DefaultSession(configuration);
    }


}
